package com.nstar.model.helloworld;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="USER_INFO"
 *     
*/
public class UserInfo implements Serializable {

    /** identifier field */
    private Long userId;

    /** nullable persistent field */
    private String userName;

    /** nullable persistent field */
    private String addr;

    /** nullable persistent field */
    private String telephone;

    /** nullable persistent field */
    private String mobile;

    /** nullable persistent field */
    private String email;

    /** nullable persistent field */
    private String qq;

    /** nullable persistent field */
    private String remark;

    /** persistent field */
    private com.nstar.model.helloworld.Department department;

    /** full constructor */
    public UserInfo(Long userId, String userName, String addr, String telephone, String mobile, String email, String qq, String remark, com.nstar.model.helloworld.Department department) {
        this.userId = userId;
        this.userName = userName;
        this.addr = addr;
        this.telephone = telephone;
        this.mobile = mobile;
        this.email = email;
        this.qq = qq;
        this.remark = remark;
        this.department = department;
    }

    /** default constructor */
    public UserInfo() {
    }

    /** minimal constructor */
    public UserInfo(Long userId, com.nstar.model.helloworld.Department department) {
        this.userId = userId;
        this.department = department;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.Long"
     *             column="USER_ID"
     *         
     */
    public Long getUserId() {
        return this.userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /** 
     *            @hibernate.property
     *             column="USER_NAME"
     *             length="50"
     *         
     */
    public String getUserName() {
        return this.userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    /** 
     *            @hibernate.property
     *             column="ADDR"
     *             length="250"
     *         
     */
    public String getAddr() {
        return this.addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    /** 
     *            @hibernate.property
     *             column="TELEPHONE"
     *             length="30"
     *         
     */
    public String getTelephone() {
        return this.telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    /** 
     *            @hibernate.property
     *             column="MOBILE"
     *             length="120"
     *         
     */
    public String getMobile() {
        return this.mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    /** 
     *            @hibernate.property
     *             column="EMAIL"
     *             length="120"
     *         
     */
    public String getEmail() {
        return this.email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    /** 
     *            @hibernate.property
     *             column="QQ"
     *             length="30"
     *         
     */
    public String getQq() {
        return this.qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    /** 
     *            @hibernate.property
     *             column="REMARK"
     *             length="200"
     *         
     */
    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    /** 
     *            @hibernate.many-to-one
     *             not-null="true"
     *            @hibernate.column name="DEPART_ID"         
     *         
     */
    public com.nstar.model.helloworld.Department getDepartment() {
        return this.department;
    }

    public void setDepartment(com.nstar.model.helloworld.Department department) {
        this.department = department;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("userId", getUserId())
            .toString();
    }

}
